package pojo;

import java.io.Serializable;




public class Competition implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8750839680809395114L;



    private int competitionId;
	

	private UserAccount playerA;
	

	private UserAccount playerB;
	

	private UserAccount winner;
	

	private League league;
	
	public Competition() {}
	
	public Competition(League league, UserAccount playerA, UserAccount playerB, UserAccount winner) {
		this.league = league;
		this.playerA = playerA;
		this.playerB = playerB;
		this.winner = winner;
	}

	public int getCompetitionId() {
		return competitionId;
	}

	public void setCompetitionId(int competitionId) {
		this.competitionId = competitionId;
	}

	public UserAccount getPlayerA() {
		return playerA;
	}

	public void setPlayerA(UserAccount playerA) {
		this.playerA = playerA;
	}

	public UserAccount getPlayerB() {
		return playerB;
	}

	public void setPlayerB(UserAccount playerB) {
		this.playerB = playerB;
	}

	public UserAccount getWinner() {
		return winner;
	}

	public void setWinner(UserAccount winner) {
		this.winner = winner;
	}

	public League getLeague() {
		return league;
	}

	public void setLeague(League league) {
		this.league = league;
	}
	
	
	
}
